# toolchain.cmake

# 设置目标系统名称
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)

# 指定交叉编译器的路径
set(CROSS_COMPILE_PATH /opt/am335xt3-cross-devkit/bin)
set(CMAKE_C_COMPILER ${CROSS_COMPILE_PATH}/arm-arago-linux-gnueabi-gcc)
set(CMAKE_CXX_COMPILER ${CROSS_COMPILE_PATH}/arm-arago-linux-gnueabi-g++)